package ch.zbw.pra.sysventory.application.controller;

import java.io.Serializable;
import java.util.List;

import ch.zbw.pra.sysventory.dataaccess.dataAccessObject.NicDataAccessObject;
import ch.zbw.pra.sysventory.model.Nic;

/**
 * Controller für die gesammelten Nics
 * 
 * @author Ralph Koster
 */

public class NicController implements Serializable {

	private static final long serialVersionUID = -1826338735666457638L;
	
	private NicDataAccessObject nicDataAccessObject;
	private List<Nic> nics;

	public NicController() {
		this.nicDataAccessObject = new NicDataAccessObject();
	}

	public List<Nic> loadNics() {
		nics = nicDataAccessObject.getAllNicFromDatabase();
		return nics;

	}
}
